#include "cpu/exec/template-start.h"

#define instr setcc

static void do_execute() {
    uint8_t condition = ops_decoded.opcode & 0xF;
    bool result = check_cc(condition);

    OPERAND_W(op_dest, result);
    print_asm("set%s %s", get_cc_name(condition), op_dest->str);
}

make_instr_helper(rm)

#include "cpu/exec/template-end.h"